package com.ruoyi.teaching.service.impl;

import com.ruoyi.teaching.domain.ScheduleManagement;
import com.ruoyi.teaching.mapper.ScheduleManagementMapper;
import com.ruoyi.teaching.service.IScheduleManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课表管理Service业务层处理
 * 
 * @author thl
 * @date 2024-01-05
 */
@Service
public class ScheduleManagementServiceImpl implements IScheduleManagementService 
{
    @Autowired
    private ScheduleManagementMapper scheduleManagementMapper;

    /**
     * 查询课表管理
     * 
     * @param id 课表管理主键
     * @return 课表管理
     */
    @Override
    public ScheduleManagement selectScheduleManagementById(Long id)
    {
        return scheduleManagementMapper.selectScheduleManagementById(id);
    }

    /**
     * 查询课表管理列表
     * 
     * @param scheduleManagement 课表管理
     * @return 课表管理
     */
    @Override
    public List<ScheduleManagement> selectScheduleManagementList(ScheduleManagement scheduleManagement)
    {
        return scheduleManagementMapper.selectScheduleManagementList(scheduleManagement);
    }

    /**
     * 新增课表管理
     * 
     * @param scheduleManagement 课表管理
     * @return 结果
     */
    @Override
    public int insertScheduleManagement(ScheduleManagement scheduleManagement)
    {
        return scheduleManagementMapper.insertScheduleManagement(scheduleManagement);
    }

    /**
     * 修改课表管理
     * 
     * @param scheduleManagement 课表管理
     * @return 结果
     */
    @Override
    public int updateScheduleManagement(ScheduleManagement scheduleManagement)
    {
        return scheduleManagementMapper.updateScheduleManagement(scheduleManagement);
    }

    /**
     * 批量删除课表管理
     * 
     * @param ids 需要删除的课表管理主键
     * @return 结果
     */
    @Override
    public int deleteScheduleManagementByIds(Long[] ids)
    {
        return scheduleManagementMapper.deleteScheduleManagementByIds(ids);
    }

    /**
     * 删除课表管理信息
     * 
     * @param id 课表管理主键
     * @return 结果
     */
    @Override
    public int deleteScheduleManagementById(Long id)
    {
        return scheduleManagementMapper.deleteScheduleManagementById(id);
    }
}
